package com.huo.qq.widget;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * @author Huoyan
 * @version 1.0
 * 2013-4-3
 */
public class TableViewerContentProvider implements IStructuredContentProvider {

	@SuppressWarnings("rawtypes")
	@Override
	public Object[] getElements(Object elements) {
		if(elements instanceof List){
			return ((List) elements).toArray();
		}else{
			return new Object[0];
		}
	}
	
	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

	@Override
	public void inputChanged(Viewer arg0, Object arg1, Object arg2) {
		// TODO Auto-generated method stub

	}

}
